#include "WaterData.h"




void WaterData::initSprite()
{
	sprites = new Sprites(rect);
	sprites->addSprite(_STATE_MAP_STAGE1_WATER_1, _ID_MAP_STAGE1_WATER_1, 30);
	sprites->setState(_STATE_MAP_STAGE1_WATER_1);
}

WaterData::WaterData(int id, int type, double x, double y)
{
	this->id = id;
	this->type = type;
	this->rect = ObstructionDataFactory::getRect(type, x, y);
	this->rect->Vx = this->rect->Vy = 0;

	this->initData();
}

void WaterData::initSpriteHandler(LPD3DXSPRITE spritehandler)
{
	sprites->initSpriteHandler(spritehandler);
}

void WaterData::initData()
{
	this->initSprite();
}
